package com.dianping.cat.alarm.server.entity;

import com.dianping.cat.alarm.server.BaseEntity;
import com.dianping.cat.alarm.server.IVisitor;
import java.util.ArrayList;
import java.util.List;

public class ServerAlarmRuleConfig
  extends BaseEntity<ServerAlarmRuleConfig>
{
  private String m_id;
/* 12 */   private List<Rule> m_rules = new ArrayList();






/* 19 */   public void accept(IVisitor visitor) { visitor.visitServerAlarmRuleConfig(this); }


  public ServerAlarmRuleConfig addRule(Rule rule) {
/* 23 */     this.m_rules.add(rule);
/* 24 */     return this;
  }


  public boolean equals(Object obj) {
/* 29 */     if (obj instanceof ServerAlarmRuleConfig) {
/* 30 */       ServerAlarmRuleConfig _o = (ServerAlarmRuleConfig)obj;

/* 32 */       if (!equals(getId(), _o.getId())) {
/* 33 */         return false;
      }

/* 36 */       if (!equals(getRules(), _o.getRules())) {
/* 37 */         return false;
      }


/* 41 */       return true;
    }

/* 44 */     return false;
  }


/* 48 */   public String getId() { return this.m_id; }



/* 52 */   public List<Rule> getRules() { return this.m_rules; }






  public void mergeAttributes(ServerAlarmRuleConfig other) {
/* 70 */     if (other.getId() != null) {
/* 71 */       this.m_id = other.getId();
    }
  }

  public ServerAlarmRuleConfig setId(String id) {
/* 76 */     this.m_id = id;
/* 77 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-alarm-3.0.0.jar!/com/dianping/cat/alarm/server/entity/ServerAlarmRuleConfig.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */